package com.ostrich.cloud.ostrichBusinessWeb.app.Api;

import com.ostrich.cloud.common.result.Result;
import com.ostrich.cloud.ostrichBusinessWeb.client.GrounpGoodsClient;
import com.ostrich.cloud.ostrichGoodsSercice.model.param.CreateGrounpParam;
import com.ostrich.cloud.ostrichGoodsService.client.GrounpClient;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
public class GrounpGoodsApiImp implements GrounpGoodsClient {
    @Resource
    private GrounpClient grounpClient;


    @Override
    public Result createGrounp(CreateGrounpParam param) {
        Result grounp = grounpClient.createGrounp(param);
        return grounp;
    }

    @Override
    public Result getGrounp(Integer current, Integer size) {

        Result grounp = grounpClient.getGrounp(current, size);

        return grounp;
    }
}
